package com.cheer.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cheer.entity.ActivityEntity;
import com.cheer.param.ActivityCheckinParam;
import com.cheer.vo.ActivityInfoVO;
import com.cheer.vo.ActivityPageVO;

import javax.servlet.http.HttpSession;

public interface ActivityService extends IService<ActivityEntity> {

    /**
     * 分页
     * @param pageNum
     * @param pageSize
     * @return
     */
    IPage<ActivityPageVO> page(Integer pageNum, Integer pageSize, HttpSession session);

    /**
     * 信息
     * @param id
     * @return
     */
    ActivityInfoVO info(Integer id, Integer userId);

    /**
     * 报名
     * @param actId
     * @param userId
     */
    void registration(Integer actId, Integer userId);

    /**
     * 签到
     * @param activityCheckinParam
     * @param userId
     */
    void checkin(ActivityCheckinParam activityCheckinParam, Integer userId);
}
